import request from "@/utils/request"

const perfix = "/tea"


// 获取教师列表
export const getTearcherList = (data) => {
  return request({
    url: `${perfix}/list`,
    method: "post",
    data
  })
}



// 添加教师列表
export const addTearcherList = (data) => {
  return request({
    url: `${perfix}/add`,
    method: "put",
    data
  })
}


// 修改教师列表
export const updateTearcherList = (data) => {
  return request({
    url: `${perfix}/update`,
    method: "post",
    data
  })
}

// 删除教师列表
export const delTearcherList = (id) => {
  return request({
    url: `${perfix}/del?id=${id}`,
    method: "delete"
  })
}